const bcrypt = require('bcryptjs')
const { sequelize } = require('../../../core/db');
const { Sequelize, Model } = require('sequelize');
const { NotFound, AuthFailed } = require('../../../core/httpException');

// 商品规格表
class ArtClass extends Model {

}

ArtClass.init({
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
    name: {
        type: Sequelize.TEXT
    },
    art_number:{
        type: Sequelize.INTEGER,
    }

}, {
    sequelize,
    tableName: 'art_class'
})


// ArtClass.sync({alter:true})
// ArtClass.create({ name:'关于JS',art_number:0 })
// ArtClass.create({ name:'关于Vue',art_number:0 })
// ArtClass.create({ name:'关于Node',art_number:0 })
// ArtClass.create({ name:'关于小程序',art_number:0 })


module.exports = { ArtClass }